import {ref} from "vue";
import {IEmailMessage, IInteractMessage, IPersonalLetterMessage} from "./utils/messageSettingInterface";


export type messageSetting = "0" | "1"

export function useMessageSetting() {
    const interact = ref<IInteractMessage>()
    const email = ref<IEmailMessage>()
    const letter = ref<IPersonalLetterMessage>()

    interact.value = {
        AddFans: "1", Interact: "0", StrangerMessage: "0", Support: "1"
    }

    email.value = {
        AddFans: "1", Interact: "0", Support: "1"
    }

    letter.value={
        LetterMessage: 24
    }

    return {
        interact,
        email,
        letter
    }
}